<?php

namespace App\Http\Livewire;

use Illuminate\Support\Facades\Auth;
use Livewire\Component;

class TeamList extends Component
{
    public $teamList;
    public $searchString;

    public function mount(){
        $this->teamList = Auth::user()->teams()->get();
    }

    public function render()
    {
        return view('livewire.team.team-list');
    }
}
